class Father{
	private	int money;

	public void setMoney(int money) {this.money = money;}
	public int getMoney() {return money;}

	public void printInfo() {System.out.println("This is Father");}
	private void printInfo2() {System.out.println("This is Father");}

}

class Son extends Father {
	public void printInfo() {System.out.println("This is Son");}
	public void printInfo2() {System.out.println("This is Son");}
}

public class Ext5{
	public static void main(String args[]) {
		Son son = new Son();
		//son.money = 100 ;
		son.setMoney(100);
		son.printInfo();
	}	
	
}














